package com.his.struts.form;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.io.IOUtils;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.upload.FormFile;
/**
 * 设备实体类
 * @author liumiaoyue
 *
 */
public class ShebeiForm extends ActionForm {

	private Integer sbNumber;

	private String sbInfo;

	private String sbPic;

	private Integer sbId;

	private String sbName;

	FormFile pic;
	
	/** 
	 * Method validate 表单验证
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		return null;
	}

	/** 
	 * Method reset 表单重置
	 * @param mapping
	 * @param request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
	}

	public Integer getSbNumber() {
		return sbNumber;
	}

	public void setSbNumber(Integer sbNumber) {
		this.sbNumber = sbNumber;
	}

	public String getSbInfo() {
		return sbInfo;
	}

	public void setSbInfo(String sbInfo) {
		this.sbInfo = sbInfo;
	}

	public String getSbPic() {
		return sbPic;
	}

	public void setSbPic(String sbPic) {
		this.sbPic = sbPic;
	}

	public Integer getSbId() {
		return sbId;
	}

	public void setSbId(Integer sbId) {
		this.sbId = sbId;
	}

	public String getSbName() {
		return sbName;
	}

	public void setSbName(String sbName) {
		this.sbName = sbName;
	}

	public FormFile getPic() {
		return pic;
	}

	public void setPic(FormFile pic) {
		this.pic = pic;
	}
}